const cloud = require('wx-server-sdk');
cloud.init();
exports.main = async (event) => {
  const db = cloud.database()
  var res = (await db.collection('teacher').get()).data
  return res
}
